import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/modules/user'
import cart from './modules/cart'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [
    createPersistedState()
  ],
  state: {
  },
  getters: {
    getCartList (state) {
      return state.cart.cartList
    }
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user, cart
  }
})
